package com.loongtech.bi.entity.bigr;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "bigr_base_message")
public class BaseMessage implements Serializable {
    private final static long serialVersionUID = 2L;

    @Id
    private String day; // 日期
    @Id
    private String userid;
    @Id
    private String channel;
    @Column(columnDefinition="varchar(32)")
    private String createday;
    @Column(columnDefinition="varchar(32)")
    private String roleid;
    @Column(columnDefinition="varchar(32)")
    private String rolename;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int rolelevel;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int serverid;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int viplevel;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int qian;
    @Column(columnDefinition="varchar(32)")
    private String maxlgdt;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int category;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int dayqian;

    public String getKey() {
        return  day + "-" + userid + "-" + channel;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDay() {
        return day;
    }

    public String getUserid() {
        return userid;
    }

    public String getChannel() {
        return channel;
    }

    public String getCreateday() {
        return createday;
    }

    public String getRoleid() {
        return roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public int getRolelevel() {
        return rolelevel;
    }

    public int getServerid() {
        return serverid;
    }

    public int getViplevel() {
        return viplevel;
    }

    public int getQian() {
        return qian;
    }

    public String getMaxlgdt() {
        return maxlgdt;
    }

    public int getCategory() {
        return category;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public void setCreateday(String createday) {
        this.createday = createday;
    }

    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public void setRolelevel(int rolelevel) {
        this.rolelevel = rolelevel;
    }

    public void setServerid(int serverid) {
        this.serverid = serverid;
    }

    public void setViplevel(int viplevel) {
        this.viplevel = viplevel;
    }

    public void setQian(int qian) {
        this.qian = qian;
    }

    public void setMaxlgdt(String maxlgdt) {
        this.maxlgdt = maxlgdt;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public int getDayqian() {
        return dayqian;
    }

    public void setDayqian(int dayqian) {
        this.dayqian = dayqian;
    }
}
